<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_with(model: user, local: true) do |f| %>
      <%= render 'shared/error_messages' %>

      <div class="field">
        <%= f.label :name, '姓名'%>
        <%= f.text_field :name, class: 'form-control'%>
      </div>

      <div class="field">
        <%= f.label :email, '邮箱' %>
        <%= f.text_field :email, class: 'form-control'%>
      </div>

      <div class="field">
        <%= f.label :password, '密码'%>
        <%= f.text_field :password, class: 'form-control'%>
      </div>

      <div class="field">
        <%= f.label :password_confirmation, "确认" %>
        <%= f.text_field :password_confirmation, class: 'form-control'%>
      </div>

      <div class="field">
        <%= f.label :avatars, "头像" %>
        <%= f.file_field :avatars, multiple: true %>
      </div>

      <div class="actions">
        <%= f.submit "提交", class: "btn btn-primary" %>
      </div>
    <% end %>
  </div>
</div>